<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>牧心农业</title>
    <link rel="stylesheet" type="text/css" href="/static/css/eui.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/mobile.css" />
    <link rel="stylesheet" type="text/css" href="/static/css/iconfont.css" />
    <script src="/static/js/jquery.min.js"></script>
    <script src="/static/js/doT.min.js"></script>
    <script src="/static/js/func.js"></script>
</head>
<body>
    <div class="content margin_top_foot">
        <header class="header fixed_top bg_mx_green"></header>
        <div class="relative">
            <img src="/static/images/user_bg.jpg" alt="">
            <div class="flex">
                <div class="user_info v_center arrow_right" onclick="location.href='<{url route='user-info'}>'">
                    <div class="width_70 border_white circle" style="border-width:3px">
                        <img class="circle" src="<{$user['avatar']}>" alt="">
                    </div>
                    <div class="left_70 padding_h_15 white text_ellipsis font_16"><{$user['nickname']}></div>
                </div>
            </div>
        </div>
        <div class="margin_b_10 bg_white padding_h_15 lineheight_3 flex_justify arrow_right" onclick="location.href='/business/user/score-record'">
            <div><span class="iconfont icon-star1 mx_green font_18"></span> 您的积分</div>
            <div class="text_info padding_r_10"><{$score}>分</div>
        </div>
        <div class="user_navs grid_3 bg_white"></div>
        <footer class="foot_tab fixed_bottom mx_green font_16"></footer>
    </div>
    <script type="text/template" charset="utf-8" id='nav_template'>
        {{for(var i=0;i<it.length;i++){}}
        <div class="grid_one padding_15 lineheight_2" onclick="location.href='{{=it[i].link}}'">
            <div class="iconfont icon-{{=it[i].icon}} font_24 {{=it[i].color}}"></div>
            <div>{{=it[i].name}}</div>
        </div>
        {{}}}
    </script>
    <script>
        // 栏目模版
            var navs = <{$menus}>;
            var evalnav = doT.template($("#nav_template").text());
            loaddata(".user_navs",evalnav,navs)
        // 头部,底部菜单
            loadheadbar("个人中心");
            loadfootbar();
    </script>
</body>
</html>
